package com.mall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.api.dto.OrderDetailDTO;
import com.mall.product.entity.dto.ProductQueryDTO;
import com.mall.product.entity.po.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    /**
     *  批量扣减库存
     */
    int deductStock(@Param("item") OrderDetailDTO item);
}